package qx.hyj.petrescue.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "朋友")
@TableName("friend")
@Builder
public class Friend {

    @Schema(description = "id")
    @TableField("id")
    private Integer id;

    @Schema(description = "用户id")
    @TableField("userId")
    private Integer userId;

    @Schema(description = "朋友id")
    @TableField("friendId")
    private Integer friendId;

    @Schema(description = "是否同意")
    @TableField("isOK")
    private Integer isOK;

    @Schema(description = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;
}
